package com.ict.txmsv2.mapper;

import com.ict.txmsv2.model.UserRole;
import org.apache.ibatis.annotations.Param;

public interface UserRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);

    int insertRids(@Param("uid") int uid, @Param("rids") Integer[] rids);

    void deleteUserRoleByUserid(Integer userId);

    int updateRolesByUseridAndrids(@Param("userId") Integer userId, @Param("rids") Integer[] rids);
}